<?php
$mail = ZKF::lib_class("mail.PHPMailer");
$mail->IsSMTP(); // send via SMTP   
$mail->Host = "smtp.qq.com"; // SMTP servers   
$mail->SMTPAuth = true; // turn on SMTP authentication   
$mail->Username = "410400606@qq.com"; // SMTP username   
$mail->Password = "yu2018"; // SMTP password   
$mail->From = "410400606@qq.com";   
$mail->FromName = "yuyu";   
$mail->AddAddress("zhukoo@qq.com",'dddd');   
//$mail->AddAddress("ellen@site.com"); // optional name   
//$mail->AddReplyTo("info@site.com","Information");   
  
$mail->WordWrap = 50; // set word wrap   
$mail->AddAttachment("load.php",'my.php'); // attachment   
//$mail->AddAttachment("/tmp/image.jpg", "new.jpg");   
$mail->IsHTML(true); // send as HTML   
  
$mail->Subject = "Flash Problem";   
$mail->Body = "Hello, this is the content.";   
$mail->AltBody = "This is the text-only body";   
  
if(!$mail->Send())   
{   
echo "Message was not sent <p>";   
echo "Mailer Error: " . $mail->ErrorInfo;   
exit;   
}  